//
//  MasonryDefine.h
//  TermOfSectionB
//
//  Created by 韩震明 on 15/11/27.
//  Copyright © 2015年 韩震明. All rights reserved.
//

#ifndef MasonryDefine_h
#define MasonryDefine_h

// 这个常量,就可以在使用Masonry不必总带着前缀 `mas_`:
#define MAS_SHORTHAND

// 定义这个常量,以支持在 Masonry 语法中自动将基本类型转换为 object 类型:
#define MAS_SHORTHAND_GLOBALS

// 见名知意
#define Left(V,N) make.left.equalTo(V).with.offset(N)
#define Right(V,N) make.right.equalTo(V).with.offset(N)
#define Top(V,N) make.top.equalTo(V).with.offset(N)
#define Bottom(V,N) make.bottom.equalTo(V).with.offset(N)
#define WIDTHToView(V) make.width.equalTo(V)
#define HEIGHTToView(V) make.height.equalTo(V)
#define WIDTHToNum(N) make.width.mas_equalTo(N)
#define HEIGHTToNum(N) make.height.mas_equalTo(N)
#define CenterY(Y) make.centerY.equalTo(Y)
#define CenterX(X) make.centerX.equalTo(X)

#endif /* MasonryDefine_h */
